<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Element 按钮示例</title>
  <!-- 引入 Element 样式文件 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <!-- 引入 Vue.js -->
  <script src="https://unpkg.com/vue/dist/vue.js"></script>
  <!-- 引入 Element 组件库 -->
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
  <div id="app">
    <el-button type="primary">主要按钮</el-button>
  </div>

  <script>
    new Vue({
      el: '#app',
      methods: {
        handleClick() {
          alert('按钮被点击了！');
        }
      }
    });
  </script>
</body>
</html>